﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Guline.HosterModels.Object
{
    public class Website
    {
        [Key]
        public int ID { get; set; }
        [Required(ErrorMessage = "Please enter Domain Name")]
        public string DomainName { get; set; }

        public Nullable<int> Status { get; set; }
        public Nullable<int> Port { get; set; }
        public string WebsiteFolder { get; set; }
        public string Notes { get; set; }
        public Nullable<int> DomainParentID { get; set; }
        public string AspnetVersion { get; set; }
        public string PhpVersion { get; set; }

        public Nullable<int> OrganizeID { get; set; }

        [ForeignKey("OrganizeID")]
        public virtual Organize Organize { get; set; }
    }
}
